<?php

namespace App\Model;

use Illuminate\Database\Eloquent\Model;

class Main extends Model
{

    public $timestamps = false;
    protected $table = 'mains';
    protected $guarded = [];

	//一个主页背景有很多相册图片
    public function main_galleries()
    {
        return $this->hasMany('App\Model\MainGallery','main_id');
    }

    
}
